﻿using System;
using MagicWatering.Scheduler;
using MagicWatering.Scheduler.Interfaces;

namespace TestPanel
{
    class FeedbackService: IFeedbackService
    {
        private TestPanel m_panel;

        public FeedbackService(TestPanel panel)
        {
            m_panel = panel;
        }

        #region Implementation of IFeedbackService

        public void Log(Constants.FeedbackClass feedbackClass, string messageId, params string[] values)
        {
            string message = string.Format("{0} \t {1} \t {2}", DateTime.Now, feedbackClass, messageId);
            m_panel.AddMessage(message);
        }


        #endregion
    }
}
